<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: /Users/wangxiao/git/emp-toolkit/emp-tool/gc/halfgate_eva.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('halfgate__eva_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">halfgate_eva.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="halfgate__eva_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef HALFGATE_EVA_H__</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define HALFGATE_EVA_H__</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="io__channel_8h.html">io_channel.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="net__io__channel_8h.html">net_io_channel.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="file__io__channel_8h.html">file_io_channel.h</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;block.h&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="utils_8h.html">utils.h</a>&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="prp_8h.html">prp.h</a>&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="hash_8h.html">hash.h</a>&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="garble__gate__halfgates_8h.html">garble/garble_gate_halfgates.h</a>&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="halfgate__eva_8h.html#ae6b1f449a574cfe029f41e46e9b65a4c">halfgate_eva_is_public</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>* gc, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> &amp; b, <span class="keywordtype">int</span> <a class="code" href="input-check-malicious_8cpp.html#aefdd5aa9f02e7cb8d21ea22b0e6b03df">party</a>);</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="halfgate__eva_8h.html#aff2d51d2e906040085b9ab78d086029f">halfgate_eva_public_label</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>* gc, <span class="keywordtype">bool</span> b);</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="halfgate__eva_8h.html#a8e0ae36f26e9369b145eb343418c9345">halfgate_eva_and</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>* gc, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;b);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="halfgate__eva_8h.html#ae0cb84e9c444848a24620abc379c0975">halfgate_eva_xor</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>*gc, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;b);</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="halfgate__eva_8h.html#a76c61b2aaa98d5a1308d4cbc6e65e80e">halfgate_eva_not</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>*gc, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a);</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt = on&gt;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html">   29</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_half_gate_eva.html">HalfGateEva</a>:<span class="keyword">public</span> <a class="code" href="class_garble_circuit.html">GarbleCircuit</a>{ <span class="keyword">public</span>:</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#ac4b34393d36bd969f8d04a9677f76b2c">   30</a></span>&#160;    <a class="code" href="class_p_r_p.html">PRP</a> <a class="code" href="class_half_gate_eva.html#ac4b34393d36bd969f8d04a9677f76b2c">prp</a>;</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#ab8066f03bc838ab9536e2c2e4c1eec4e">   31</a></span>&#160;    T * <a class="code" href="class_half_gate_eva.html#ab8066f03bc838ab9536e2c2e4c1eec4e">io</a>;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#afa987c1f99e0686c3a4811d2233a9987">   32</a></span>&#160;    <a class="code" href="class_hash.html">Hash</a> <a class="code" href="class_half_gate_eva.html#afa987c1f99e0686c3a4811d2233a9987">hash</a>;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#ae49f9831607cb268bedf52bdca81fc30">   33</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_half_gate_eva.html#ae49f9831607cb268bedf52bdca81fc30">with_file_io</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#a1fbafa21447cc1c05e572a649011f773">   34</a></span>&#160;    <a class="code" href="class_file_i_o.html">FileIO</a> * <a class="code" href="class_half_gate_eva.html#a1fbafa21447cc1c05e572a649011f773">fio</a>;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#aabb6114e538c1186f2c7412022128646">   35</a></span>&#160;    <a class="code" href="class_half_gate_eva.html#aabb6114e538c1186f2c7412022128646">HalfGateEva</a>(T * io) :io(io) {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <a class="code" href="class_garble_circuit.html#a46e815c9fb7a86bd4f2f92480779a13b">is_public_ptr</a> = &amp;halfgate_eva_is_public&lt;T, rt&gt;;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <a class="code" href="class_garble_circuit.html#a6615b1040a189cff8e434b9e0aace85b">public_label_ptr</a> = &amp;halfgate_eva_public_label&lt;T, rt&gt;;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <a class="code" href="class_garble_circuit.html#afccc6540c2627b73b87d6c5f84b88f1e">gc_and_ptr</a> = &amp;halfgate_eva_and&lt;T, rt&gt;;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        <a class="code" href="class_garble_circuit.html#afa9ba1e3231ce457c27271ab0f851014">gc_xor_ptr</a> = &amp;halfgate_eva_xor&lt;T, rt&gt;;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <a class="code" href="class_garble_circuit.html#a21e46d460e571ba333ad682c92c4bd57">gc_not_ptr</a> = &amp;halfgate_eva_not&lt;T, rt&gt;;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    }</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#adfc092f8022489e37862c9d5b98f8024">   42</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_half_gate_eva.html#adfc092f8022489e37862c9d5b98f8024">set_file_io</a>(<a class="code" href="class_file_i_o.html">FileIO</a> * fio) {</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        with_file_io = <span class="keyword">true</span>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        this-&gt;fio = <a class="code" href="class_half_gate_eva.html#a1fbafa21447cc1c05e572a649011f773">fio</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    }</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#ac6cf61af6e591f84e1dd41638ac2a1aa">   46</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_half_gate_eva.html#ac6cf61af6e591f84e1dd41638ac2a1aa">is_public_impl</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> &amp; b, <span class="keywordtype">int</span> <a class="code" href="input-check-malicious_8cpp.html#aefdd5aa9f02e7cb8d21ea22b0e6b03df">party</a>) {</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="utils_2block_8h.html#a5d6a5bd7b77a4610c6158487adbe5ba4">isZero</a>(&amp;b) or <a class="code" href="utils_2block_8h.html#a01d7fb04c12a2a0e2e30c31e0c61d44d">isOne</a>(&amp;b);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    }</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#a7e38ec4542a84ec5af3053e39b06f85f">   49</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="class_half_gate_eva.html#a7e38ec4542a84ec5af3053e39b06f85f">public_label_impl</a>(<span class="keywordtype">bool</span> b) {</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keywordflow">return</span> b? <a class="code" href="utils_2block_8h.html#a82cb0a8d42708a807a061856813ac9f6">one_block</a>() : <a class="code" href="utils_2block_8h.html#af2ad8a9f0015464df6574a13e598bdb8">zero_block</a>();</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    }</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#ab063aaa255ffcda3166e20ad5f5775d0">   52</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="class_half_gate_eva.html#ab063aaa255ffcda3166e20ad5f5775d0">and_gate</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp; a, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp; b) {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> out, table[2];</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="utils_2block_8h.html#a5d6a5bd7b77a4610c6158487adbe5ba4">isZero</a>(&amp;a) or <a class="code" href="utils_2block_8h.html#a01d7fb04c12a2a0e2e30c31e0c61d44d">isOne</a>(&amp;a) or <a class="code" href="utils_2block_8h.html#a5d6a5bd7b77a4610c6158487adbe5ba4">isZero</a>(&amp;b) or <a class="code" href="utils_2block_8h.html#a01d7fb04c12a2a0e2e30c31e0c61d44d">isOne</a>(&amp;b)) {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            <span class="keywordflow">return</span> _mm_and_si128(a, b);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;            io-&gt;recv_block(table, 2);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="keywordflow">if</span>(with_file_io) {</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                fio-&gt;<a class="code" href="class_i_o_channel.html#a41614ba924161dfafdced9f2d2201823">send_block</a>(table, 2);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;                <span class="keywordflow">return</span> prp.<a class="code" href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">H</a>(a, <a class="code" href="class_garble_circuit.html#a8f6b42bac3b5ce931d1d3eacb7db9d88">gid</a>++);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            }</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            garble_gate_eval_halfgates(<a class="code" href="garble_8h.html#acde351ee0c4a231557cb9d0b8b7a2641aa6a6bdaab4cbde5d9524a39cac9f3bfa">GARBLE_GATE_AND</a>, a, b, &amp;out, table, <a class="code" href="class_garble_circuit.html#a8f6b42bac3b5ce931d1d3eacb7db9d88">gid</a>++, prp.<a class="code" href="class_p_r_p.html#abbb7cb3f37a26e14c411c83d9ad4cc92">aes</a>);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            <span class="keywordflow">return</span> out;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        }</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#ac3b1e4d4d7e305e5ef08045a11237d3b">   66</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="class_half_gate_eva.html#ac3b1e4d4d7e305e5ef08045a11237d3b">xor_gate</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp; b) {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordflow">if</span>(<a class="code" href="utils_2block_8h.html#a01d7fb04c12a2a0e2e30c31e0c61d44d">isOne</a>(&amp;a))</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="class_half_gate_eva.html#af60aad058982cf480a6cdd477239288b">not_gate</a>(b);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="utils_2block_8h.html#a01d7fb04c12a2a0e2e30c31e0c61d44d">isOne</a>(&amp;b))</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="class_half_gate_eva.html#af60aad058982cf480a6cdd477239288b">not_gate</a>(a);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a>(a, b);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#af60aad058982cf480a6cdd477239288b">   74</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="class_half_gate_eva.html#af60aad058982cf480a6cdd477239288b">not_gate</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a) {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="utils_2block_8h.html#a5d6a5bd7b77a4610c6158487adbe5ba4">isZero</a>(&amp;a))</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="utils_2block_8h.html#a82cb0a8d42708a807a061856813ac9f6">one_block</a>();</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="utils_2block_8h.html#a01d7fb04c12a2a0e2e30c31e0c61d44d">isOne</a>(&amp;a))</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="utils_2block_8h.html#af2ad8a9f0015464df6574a13e598bdb8">zero_block</a>();</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            <span class="keywordflow">return</span> a;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    }</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_half_gate_eva.html#a57d3be00fff3b90d4ac415481f484bfe">   82</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_half_gate_eva.html#a57d3be00fff3b90d4ac415481f484bfe">generic_to_xor</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* new_block, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * old_block, <span class="keywordtype">int</span> length) {</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> h[4], t;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; length; ++i) {</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            io-&gt;recv_block(h, 4);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            t = prp.<a class="code" href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">H</a>(old_block[i], 2*i);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="utils_2block_8h.html#a5b8d454a7188407c793ba335cc6d38d9">block_cmp</a>(&amp;t, &amp;h[0], 1)) {</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                new_block[i] = <a class="code" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a>(h[1], prp.<a class="code" href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">H</a>(old_block[i], 2*i+1));</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                new_block[i] = <a class="code" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a>(h[3], prp.<a class="code" href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">H</a>(old_block[i], 2*i+1));</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        }</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    }</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;};</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html">   96</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_half_gate_eva.html">HalfGateEva</a>&lt;T,<a class="code" href="garble__circuit_8h.html#ae7d6f2e6bfde733807facd102cf377fe">RTCktOpt</a>::<a class="code" href="garble__circuit_8h.html#ae7d6f2e6bfde733807facd102cf377fea53ace14c115e45153a1c9105accceb4c">off</a>&gt;:<span class="keyword">public</span> <a class="code" href="class_garble_circuit.html">GarbleCircuit</a>{ <span class="keyword">public</span>:</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a8d838d27e07cb6024f47adcb78103921">   97</a></span>&#160;    <a class="code" href="class_p_r_p.html">PRP</a> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a8d838d27e07cb6024f47adcb78103921">prp</a>;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6a79d4a57a84e7523d6564d32e3e7cc9">   98</a></span>&#160;    T * <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6a79d4a57a84e7523d6564d32e3e7cc9">io</a>;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a5fcd622569754ba6473bcf817156c287">   99</a></span>&#160;    <a class="code" href="class_hash.html">Hash</a> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a5fcd622569754ba6473bcf817156c287">hash</a>;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a545ceadd8fe26ea3e0732ff2a7286bcb">  100</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_half_gate_eva.html#ae49f9831607cb268bedf52bdca81fc30">with_file_io</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6346cf87b7d7cc6c53a2fa86904c7453">  101</a></span>&#160;    <a class="code" href="class_file_i_o.html">FileIO</a> * <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6346cf87b7d7cc6c53a2fa86904c7453">fio</a>;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a810616706715f052d8600a2ee472399c">  102</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> constant[2];</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a28cdf5d53eb69c119356c2c2d74c5c14">  103</a></span>&#160;    <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a28cdf5d53eb69c119356c2c2d74c5c14">HalfGateEva</a>(T * io) :io(io) {</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <a class="code" href="class_garble_circuit.html#a46e815c9fb7a86bd4f2f92480779a13b">is_public_ptr</a> = &amp;halfgate_eva_is_public&lt;T, RTCktOpt::off&gt;;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <a class="code" href="class_garble_circuit.html#a6615b1040a189cff8e434b9e0aace85b">public_label_ptr</a> = &amp;halfgate_eva_public_label&lt;T, RTCktOpt::off&gt;;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <a class="code" href="class_garble_circuit.html#afccc6540c2627b73b87d6c5f84b88f1e">gc_and_ptr</a> = &amp;halfgate_eva_and&lt;T, RTCktOpt::off&gt;;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="class_garble_circuit.html#afa9ba1e3231ce457c27271ab0f851014">gc_xor_ptr</a> = &amp;halfgate_eva_xor&lt;T, RTCktOpt::off&gt;;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <a class="code" href="class_garble_circuit.html#a21e46d460e571ba333ad682c92c4bd57">gc_not_ptr</a> = &amp;halfgate_eva_not&lt;T, RTCktOpt::off&gt;;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <a class="code" href="class_p_r_g.html">PRG</a> prg2(<a class="code" href="utils_2block_8h.html#a1a61c940fcdfab9d717ed2f9c27f3602">fix_key</a>);prg2.<a class="code" href="class_p_r_g.html#a822a2e39f1d2629b881ce9b3b8d66bf9">random_block</a>(constant, 2);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    }</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a4b6c2b76f7a1ae9311857b0968f7d13d">  111</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a4b6c2b76f7a1ae9311857b0968f7d13d">set_file_io</a>(<a class="code" href="class_file_i_o.html">FileIO</a> * fio) {</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        with_file_io = <span class="keyword">true</span>;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        this-&gt;fio = <a class="code" href="class_half_gate_eva.html#a1fbafa21447cc1c05e572a649011f773">fio</a>;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    }</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#ab90d7e0ef4a6c5cd05cb731b60c10137">  115</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#ab90d7e0ef4a6c5cd05cb731b60c10137">is_public_impl</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> &amp; b, <span class="keywordtype">int</span> <a class="code" href="input-check-malicious_8cpp.html#aefdd5aa9f02e7cb8d21ea22b0e6b03df">party</a>) {</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    }</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6fee802cf5924c389324acd33c6c2d9f">  118</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6fee802cf5924c389324acd33c6c2d9f">public_label_impl</a>(<span class="keywordtype">bool</span> b) {</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">return</span> constant[b];</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment">//      return b? one_block() : zero_block();</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    }</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a5daaef22df1904df9a59d94d4d8da4b1">  122</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a5daaef22df1904df9a59d94d4d8da4b1">and_gate</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp; a, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp; b) {</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> out, table[2];</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        io-&gt;recv_block(table, 2);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keywordflow">if</span>(with_file_io) {</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;            fio-&gt;<a class="code" href="class_i_o_channel.html#a41614ba924161dfafdced9f2d2201823">send_block</a>(table, 2);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            <span class="keywordflow">return</span> prp.<a class="code" href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">H</a>(a, <a class="code" href="class_garble_circuit.html#a8f6b42bac3b5ce931d1d3eacb7db9d88">gid</a>++);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        }</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        garble_gate_eval_halfgates(<a class="code" href="garble_8h.html#acde351ee0c4a231557cb9d0b8b7a2641aa6a6bdaab4cbde5d9524a39cac9f3bfa">GARBLE_GATE_AND</a>, a, b, &amp;out, table, <a class="code" href="class_garble_circuit.html#a8f6b42bac3b5ce931d1d3eacb7db9d88">gid</a>++, prp.<a class="code" href="class_p_r_p.html#abbb7cb3f37a26e14c411c83d9ad4cc92">aes</a>);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keywordflow">return</span> out;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    }</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#acac272bb033c49da8d44b6c1d09e920f">  132</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#acac272bb033c49da8d44b6c1d09e920f">xor_gate</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp; a, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp; b) {</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a>(a,b);</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    }</div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a0b05ddd2df2f91775c197a81d37a3f05">  135</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a0b05ddd2df2f91775c197a81d37a3f05">not_gate</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a){</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_half_gate_eva.html#ac3b1e4d4d7e305e5ef08045a11237d3b">xor_gate</a>(a, <a class="code" href="class_half_gate_eva.html#a7e38ec4542a84ec5af3053e39b06f85f">public_label_impl</a>(<span class="keyword">true</span>));</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    }</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#ab8125bbc261a725ddc7803d1d023e7b8">  138</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#ab8125bbc261a725ddc7803d1d023e7b8">generic_to_xor</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* new_block, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * old_block, <span class="keywordtype">int</span> length) {</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> h[4], t;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; length; ++i) {</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;            io-&gt;recv_block(h, 4);</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;            t = prp.<a class="code" href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">H</a>(old_block[i], 2*i);</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="utils_2block_8h.html#a5b8d454a7188407c793ba335cc6d38d9">block_cmp</a>(&amp;t, &amp;h[0], 1)) {</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                new_block[i] = <a class="code" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a>(h[1], prp.<a class="code" href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">H</a>(old_block[i], 2*i+1));</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                new_block[i] = <a class="code" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a>(h[3], prp.<a class="code" href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">H</a>(old_block[i], 2*i+1));</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        }</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    }</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;};</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="halfgate__eva_8h.html#ae6b1f449a574cfe029f41e46e9b65a4c">  153</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="halfgate__eva_8h.html#ae6b1f449a574cfe029f41e46e9b65a4c">halfgate_eva_is_public</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>* gc, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> &amp; b, <span class="keywordtype">int</span> <a class="code" href="input-check-malicious_8cpp.html#aefdd5aa9f02e7cb8d21ea22b0e6b03df">party</a>) {</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keywordflow">return</span> ((<a class="code" href="class_half_gate_eva.html">HalfGateEva&lt;T,rt&gt;</a>*)gc)-&gt;is_public_impl(b, party);</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;}</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="halfgate__eva_8h.html#aff2d51d2e906040085b9ab78d086029f">  157</a></span>&#160;<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="halfgate__eva_8h.html#aff2d51d2e906040085b9ab78d086029f">halfgate_eva_public_label</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>* gc, <span class="keywordtype">bool</span> b) {</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordflow">return</span> ((<a class="code" href="class_half_gate_eva.html">HalfGateEva&lt;T,rt&gt;</a>*)gc)-&gt;public_label_impl(b);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;}</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="halfgate__eva_8h.html#a8e0ae36f26e9369b145eb343418c9345">  161</a></span>&#160;<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="halfgate__eva_8h.html#a8e0ae36f26e9369b145eb343418c9345">halfgate_eva_and</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>* gc, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;b) {</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keywordflow">return</span> ((<a class="code" href="class_half_gate_eva.html">HalfGateEva&lt;T,rt&gt;</a>*)gc)-&gt;and_gate(a, b);</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;}</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="halfgate__eva_8h.html#ae0cb84e9c444848a24620abc379c0975">  165</a></span>&#160;<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="halfgate__eva_8h.html#ae0cb84e9c444848a24620abc379c0975">halfgate_eva_xor</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>*gc, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;b) {</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">return</span> ((<a class="code" href="class_half_gate_eva.html">HalfGateEva&lt;T,rt&gt;</a>*)gc)-&gt;xor_gate(a, b);</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;}</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, RTCktOpt rt&gt;</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="halfgate__eva_8h.html#a76c61b2aaa98d5a1308d4cbc6e65e80e">  169</a></span>&#160;<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="code" href="halfgate__eva_8h.html#a76c61b2aaa98d5a1308d4cbc6e65e80e">halfgate_eva_not</a>(<a class="code" href="class_garble_circuit.html">GarbleCircuit</a>*gc, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&amp;a) {</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordflow">return</span> ((<a class="code" href="class_half_gate_eva.html">HalfGateEva&lt;T,rt&gt;</a>*)gc)-&gt;not_gate(a);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;}</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor">#endif// HALFGATE_EVA_H__</span></div><div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_ab8125bbc261a725ddc7803d1d023e7b8"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#ab8125bbc261a725ddc7803d1d023e7b8">HalfGateEva&lt; T, RTCktOpt::off &gt;::generic_to_xor</a></div><div class="ttdeci">void generic_to_xor(block *new_block, const block *old_block, int length)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:138</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a28cdf5d53eb69c119356c2c2d74c5c14"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a28cdf5d53eb69c119356c2c2d74c5c14">HalfGateEva&lt; T, RTCktOpt::off &gt;::HalfGateEva</a></div><div class="ttdeci">HalfGateEva(T *io)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:103</div></div>
<div class="ttc" id="class_half_gate_eva_html_a1fbafa21447cc1c05e572a649011f773"><div class="ttname"><a href="class_half_gate_eva.html#a1fbafa21447cc1c05e572a649011f773">HalfGateEva::fio</a></div><div class="ttdeci">FileIO * fio</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:34</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a8d838d27e07cb6024f47adcb78103921"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a8d838d27e07cb6024f47adcb78103921">HalfGateEva&lt; T, RTCktOpt::off &gt;::prp</a></div><div class="ttdeci">PRP prp</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:97</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a5daaef22df1904df9a59d94d4d8da4b1"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a5daaef22df1904df9a59d94d4d8da4b1">HalfGateEva&lt; T, RTCktOpt::off &gt;::and_gate</a></div><div class="ttdeci">block and_gate(const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:122</div></div>
<div class="ttc" id="io__channel_8h_html"><div class="ttname"><a href="io__channel_8h.html">io_channel.h</a></div></div>
<div class="ttc" id="garble_2block_8h_html_a65abbf31b0a30290189cdb5059b5f785"><div class="ttname"><a href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a></div><div class="ttdeci">__m128i block</div><div class="ttdef"><b>Definition:</b> block.h:8</div></div>
<div class="ttc" id="utils_2block_8h_html_a5d6a5bd7b77a4610c6158487adbe5ba4"><div class="ttname"><a href="utils_2block_8h.html#a5d6a5bd7b77a4610c6158487adbe5ba4">isZero</a></div><div class="ttdeci">bool isZero(const block *b)</div><div class="ttdef"><b>Definition:</b> block.h:71</div></div>
<div class="ttc" id="prp_8h_html"><div class="ttname"><a href="prp_8h.html">prp.h</a></div></div>
<div class="ttc" id="class_half_gate_eva_html_ab8066f03bc838ab9536e2c2e4c1eec4e"><div class="ttname"><a href="class_half_gate_eva.html#ab8066f03bc838ab9536e2c2e4c1eec4e">HalfGateEva::io</a></div><div class="ttdeci">T * io</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:31</div></div>
<div class="ttc" id="halfgate__eva_8h_html_a76c61b2aaa98d5a1308d4cbc6e65e80e"><div class="ttname"><a href="halfgate__eva_8h.html#a76c61b2aaa98d5a1308d4cbc6e65e80e">halfgate_eva_not</a></div><div class="ttdeci">block halfgate_eva_not(GarbleCircuit *gc, const block &amp;a)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:169</div></div>
<div class="ttc" id="class_garble_circuit_html_a8f6b42bac3b5ce931d1d3eacb7db9d88"><div class="ttname"><a href="class_garble_circuit.html#a8f6b42bac3b5ce931d1d3eacb7db9d88">GarbleCircuit::gid</a></div><div class="ttdeci">uint64_t gid</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:8</div></div>
<div class="ttc" id="utils_2block_8h_html_a939b7dd0e7479964d6fe6984b90dd5ce"><div class="ttname"><a href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a></div><div class="ttdeci">block xorBlocks(block x, block y)</div><div class="ttdef"><b>Definition:</b> block.h:35</div></div>
<div class="ttc" id="halfgate__eva_8h_html_ae0cb84e9c444848a24620abc379c0975"><div class="ttname"><a href="halfgate__eva_8h.html#ae0cb84e9c444848a24620abc379c0975">halfgate_eva_xor</a></div><div class="ttdeci">block halfgate_eva_xor(GarbleCircuit *gc, const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:165</div></div>
<div class="ttc" id="hash_8h_html"><div class="ttname"><a href="hash_8h.html">hash.h</a></div></div>
<div class="ttc" id="class_half_gate_eva_html_afa987c1f99e0686c3a4811d2233a9987"><div class="ttname"><a href="class_half_gate_eva.html#afa987c1f99e0686c3a4811d2233a9987">HalfGateEva::hash</a></div><div class="ttdeci">Hash hash</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:32</div></div>
<div class="ttc" id="utils_2block_8h_html_a01d7fb04c12a2a0e2e30c31e0c61d44d"><div class="ttname"><a href="utils_2block_8h.html#a01d7fb04c12a2a0e2e30c31e0c61d44d">isOne</a></div><div class="ttdeci">bool isOne(const block *b)</div><div class="ttdef"><b>Definition:</b> block.h:75</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_acac272bb033c49da8d44b6c1d09e920f"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#acac272bb033c49da8d44b6c1d09e920f">HalfGateEva&lt; T, RTCktOpt::off &gt;::xor_gate</a></div><div class="ttdeci">block xor_gate(const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:132</div></div>
<div class="ttc" id="class_garble_circuit_html_afccc6540c2627b73b87d6c5f84b88f1e"><div class="ttname"><a href="class_garble_circuit.html#afccc6540c2627b73b87d6c5f84b88f1e">GarbleCircuit::gc_and_ptr</a></div><div class="ttdeci">block(* gc_and_ptr)(GarbleCircuit *gc, const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:11</div></div>
<div class="ttc" id="utils_2block_8h_html_af2ad8a9f0015464df6574a13e598bdb8"><div class="ttname"><a href="utils_2block_8h.html#af2ad8a9f0015464df6574a13e598bdb8">zero_block</a></div><div class="ttdeci">#define zero_block()</div><div class="ttdef"><b>Definition:</b> block.h:66</div></div>
<div class="ttc" id="class_garble_circuit_html_a6615b1040a189cff8e434b9e0aace85b"><div class="ttname"><a href="class_garble_circuit.html#a6615b1040a189cff8e434b9e0aace85b">GarbleCircuit::public_label_ptr</a></div><div class="ttdeci">block(* public_label_ptr)(GarbleCircuit *gc, bool b)</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:10</div></div>
<div class="ttc" id="garble__circuit_8h_html_ae7d6f2e6bfde733807facd102cf377fe"><div class="ttname"><a href="garble__circuit_8h.html#ae7d6f2e6bfde733807facd102cf377fe">RTCktOpt</a></div><div class="ttdeci">RTCktOpt</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:6</div></div>
<div class="ttc" id="class_half_gate_eva_html_ac4b34393d36bd969f8d04a9677f76b2c"><div class="ttname"><a href="class_half_gate_eva.html#ac4b34393d36bd969f8d04a9677f76b2c">HalfGateEva::prp</a></div><div class="ttdeci">PRP prp</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:30</div></div>
<div class="ttc" id="utils_8h_html"><div class="ttname"><a href="utils_8h.html">utils.h</a></div></div>
<div class="ttc" id="class_half_gate_eva_html_aabb6114e538c1186f2c7412022128646"><div class="ttname"><a href="class_half_gate_eva.html#aabb6114e538c1186f2c7412022128646">HalfGateEva::HalfGateEva</a></div><div class="ttdeci">HalfGateEva(T *io)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:35</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a6fee802cf5924c389324acd33c6c2d9f"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6fee802cf5924c389324acd33c6c2d9f">HalfGateEva&lt; T, RTCktOpt::off &gt;::public_label_impl</a></div><div class="ttdeci">block public_label_impl(bool b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:118</div></div>
<div class="ttc" id="garble_8h_html_acde351ee0c4a231557cb9d0b8b7a2641aa6a6bdaab4cbde5d9524a39cac9f3bfa"><div class="ttname"><a href="garble_8h.html#acde351ee0c4a231557cb9d0b8b7a2641aa6a6bdaab4cbde5d9524a39cac9f3bfa">GARBLE_GATE_AND</a></div><div class="ttdef"><b>Definition:</b> garble.h:28</div></div>
<div class="ttc" id="class_p_r_g_html_a822a2e39f1d2629b881ce9b3b8d66bf9"><div class="ttname"><a href="class_p_r_g.html#a822a2e39f1d2629b881ce9b3b8d66bf9">PRG::random_block</a></div><div class="ttdeci">void random_block(block *data, int nblocks=1)</div><div class="ttdef"><b>Definition:</b> prg.h:75</div></div>
<div class="ttc" id="utils_2block_8h_html_a1a61c940fcdfab9d717ed2f9c27f3602"><div class="ttname"><a href="utils_2block_8h.html#a1a61c940fcdfab9d717ed2f9c27f3602">fix_key</a></div><div class="ttdeci">const char fix_key[]</div><div class="ttdef"><b>Definition:</b> block.h:130</div></div>
<div class="ttc" id="class_half_gate_eva_html_adfc092f8022489e37862c9d5b98f8024"><div class="ttname"><a href="class_half_gate_eva.html#adfc092f8022489e37862c9d5b98f8024">HalfGateEva::set_file_io</a></div><div class="ttdeci">void set_file_io(FileIO *fio)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:42</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a5fcd622569754ba6473bcf817156c287"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a5fcd622569754ba6473bcf817156c287">HalfGateEva&lt; T, RTCktOpt::off &gt;::hash</a></div><div class="ttdeci">Hash hash</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:99</div></div>
<div class="ttc" id="garble__circuit_8h_html_ae7d6f2e6bfde733807facd102cf377fea53ace14c115e45153a1c9105accceb4c"><div class="ttname"><a href="garble__circuit_8h.html#ae7d6f2e6bfde733807facd102cf377fea53ace14c115e45153a1c9105accceb4c">off</a></div><div class="ttdef"><b>Definition:</b> garble_circuit.h:6</div></div>
<div class="ttc" id="class_p_r_p_html_a27497c4db9526ca6a8df4fd4db9782d0"><div class="ttname"><a href="class_p_r_p.html#a27497c4db9526ca6a8df4fd4db9782d0">PRP::H</a></div><div class="ttdeci">block H(block in, uint64_t id)</div><div class="ttdef"><b>Definition:</b> prp.h:48</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a6a79d4a57a84e7523d6564d32e3e7cc9"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6a79d4a57a84e7523d6564d32e3e7cc9">HalfGateEva&lt; T, RTCktOpt::off &gt;::io</a></div><div class="ttdeci">T * io</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:98</div></div>
<div class="ttc" id="class_half_gate_eva_html_a7e38ec4542a84ec5af3053e39b06f85f"><div class="ttname"><a href="class_half_gate_eva.html#a7e38ec4542a84ec5af3053e39b06f85f">HalfGateEva::public_label_impl</a></div><div class="ttdeci">block public_label_impl(bool b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:49</div></div>
<div class="ttc" id="class_p_r_p_html"><div class="ttname"><a href="class_p_r_p.html">PRP</a></div><div class="ttdef"><b>Definition:</b> prp.h:11</div></div>
<div class="ttc" id="class_half_gate_eva_html_ac6cf61af6e591f84e1dd41638ac2a1aa"><div class="ttname"><a href="class_half_gate_eva.html#ac6cf61af6e591f84e1dd41638ac2a1aa">HalfGateEva::is_public_impl</a></div><div class="ttdeci">bool is_public_impl(const block &amp;b, int party)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:46</div></div>
<div class="ttc" id="class_half_gate_eva_html_ab063aaa255ffcda3166e20ad5f5775d0"><div class="ttname"><a href="class_half_gate_eva.html#ab063aaa255ffcda3166e20ad5f5775d0">HalfGateEva::and_gate</a></div><div class="ttdeci">block and_gate(const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:52</div></div>
<div class="ttc" id="halfgate__eva_8h_html_aff2d51d2e906040085b9ab78d086029f"><div class="ttname"><a href="halfgate__eva_8h.html#aff2d51d2e906040085b9ab78d086029f">halfgate_eva_public_label</a></div><div class="ttdeci">block halfgate_eva_public_label(GarbleCircuit *gc, bool b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:157</div></div>
<div class="ttc" id="halfgate__eva_8h_html_a8e0ae36f26e9369b145eb343418c9345"><div class="ttname"><a href="halfgate__eva_8h.html#a8e0ae36f26e9369b145eb343418c9345">halfgate_eva_and</a></div><div class="ttdeci">block halfgate_eva_and(GarbleCircuit *gc, const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:161</div></div>
<div class="ttc" id="net__io__channel_8h_html"><div class="ttname"><a href="net__io__channel_8h.html">net_io_channel.h</a></div></div>
<div class="ttc" id="class_p_r_p_html_abbb7cb3f37a26e14c411c83d9ad4cc92"><div class="ttname"><a href="class_p_r_p.html#abbb7cb3f37a26e14c411c83d9ad4cc92">PRP::aes</a></div><div class="ttdeci">AES_KEY * aes</div><div class="ttdef"><b>Definition:</b> prp.h:12</div></div>
<div class="ttc" id="class_garble_circuit_html_a21e46d460e571ba333ad682c92c4bd57"><div class="ttname"><a href="class_garble_circuit.html#a21e46d460e571ba333ad682c92c4bd57">GarbleCircuit::gc_not_ptr</a></div><div class="ttdeci">block(* gc_not_ptr)(GarbleCircuit *gc, const block &amp;a)</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:13</div></div>
<div class="ttc" id="class_garble_circuit_html_afa9ba1e3231ce457c27271ab0f851014"><div class="ttname"><a href="class_garble_circuit.html#afa9ba1e3231ce457c27271ab0f851014">GarbleCircuit::gc_xor_ptr</a></div><div class="ttdeci">block(* gc_xor_ptr)(GarbleCircuit *gc, const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:12</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a4b6c2b76f7a1ae9311857b0968f7d13d"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a4b6c2b76f7a1ae9311857b0968f7d13d">HalfGateEva&lt; T, RTCktOpt::off &gt;::set_file_io</a></div><div class="ttdeci">void set_file_io(FileIO *fio)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:111</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a0b05ddd2df2f91775c197a81d37a3f05"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a0b05ddd2df2f91775c197a81d37a3f05">HalfGateEva&lt; T, RTCktOpt::off &gt;::not_gate</a></div><div class="ttdeci">block not_gate(const block &amp;a)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:135</div></div>
<div class="ttc" id="garble__gate__halfgates_8h_html"><div class="ttname"><a href="garble__gate__halfgates_8h.html">garble_gate_halfgates.h</a></div></div>
<div class="ttc" id="class_p_r_g_html"><div class="ttname"><a href="class_p_r_g.html">PRG</a></div><div class="ttdef"><b>Definition:</b> prg.h:16</div></div>
<div class="ttc" id="utils_2block_8h_html_a5b8d454a7188407c793ba335cc6d38d9"><div class="ttname"><a href="utils_2block_8h.html#a5b8d454a7188407c793ba335cc6d38d9">block_cmp</a></div><div class="ttdeci">bool block_cmp(const block *x, const block *y, int nblocks)</div><div class="ttdef"><b>Definition:</b> block.h:56</div></div>
<div class="ttc" id="file__io__channel_8h_html"><div class="ttname"><a href="file__io__channel_8h.html">file_io_channel.h</a></div></div>
<div class="ttc" id="class_hash_html"><div class="ttname"><a href="class_hash.html">Hash</a></div><div class="ttdef"><b>Definition:</b> hash.h:12</div></div>
<div class="ttc" id="class_half_gate_eva_html"><div class="ttname"><a href="class_half_gate_eva.html">HalfGateEva</a></div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:29</div></div>
<div class="ttc" id="class_half_gate_eva_html_ae49f9831607cb268bedf52bdca81fc30"><div class="ttname"><a href="class_half_gate_eva.html#ae49f9831607cb268bedf52bdca81fc30">HalfGateEva::with_file_io</a></div><div class="ttdeci">bool with_file_io</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:33</div></div>
<div class="ttc" id="utils_2block_8h_html_a82cb0a8d42708a807a061856813ac9f6"><div class="ttname"><a href="utils_2block_8h.html#a82cb0a8d42708a807a061856813ac9f6">one_block</a></div><div class="ttdeci">#define one_block()</div><div class="ttdef"><b>Definition:</b> block.h:67</div></div>
<div class="ttc" id="class_garble_circuit_html"><div class="ttname"><a href="class_garble_circuit.html">GarbleCircuit</a></div><div class="ttdef"><b>Definition:</b> garble_circuit.h:7</div></div>
<div class="ttc" id="class_i_o_channel_html_a41614ba924161dfafdced9f2d2201823"><div class="ttname"><a href="class_i_o_channel.html#a41614ba924161dfafdced9f2d2201823">IOChannel::send_block</a></div><div class="ttdeci">void send_block(const block *data, int nblock)</div><div class="ttdef"><b>Definition:</b> io_channel.h:132</div></div>
<div class="ttc" id="class_half_gate_eva_html_ac3b1e4d4d7e305e5ef08045a11237d3b"><div class="ttname"><a href="class_half_gate_eva.html#ac3b1e4d4d7e305e5ef08045a11237d3b">HalfGateEva::xor_gate</a></div><div class="ttdeci">block xor_gate(const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:66</div></div>
<div class="ttc" id="class_garble_circuit_html_a46e815c9fb7a86bd4f2f92480779a13b"><div class="ttname"><a href="class_garble_circuit.html#a46e815c9fb7a86bd4f2f92480779a13b">GarbleCircuit::is_public_ptr</a></div><div class="ttdeci">bool(* is_public_ptr)(GarbleCircuit *gc, const block &amp;b, int party)</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:9</div></div>
<div class="ttc" id="class_half_gate_eva_html_af60aad058982cf480a6cdd477239288b"><div class="ttname"><a href="class_half_gate_eva.html#af60aad058982cf480a6cdd477239288b">HalfGateEva::not_gate</a></div><div class="ttdeci">block not_gate(const block &amp;a)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:74</div></div>
<div class="ttc" id="input-check-malicious_8cpp_html_aefdd5aa9f02e7cb8d21ea22b0e6b03df"><div class="ttname"><a href="input-check-malicious_8cpp.html#aefdd5aa9f02e7cb8d21ea22b0e6b03df">party</a></div><div class="ttdeci">int party</div><div class="ttdef"><b>Definition:</b> input-check-malicious.cpp:12</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_ab90d7e0ef4a6c5cd05cb731b60c10137"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#ab90d7e0ef4a6c5cd05cb731b60c10137">HalfGateEva&lt; T, RTCktOpt::off &gt;::is_public_impl</a></div><div class="ttdeci">bool is_public_impl(const block &amp;b, int party)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:115</div></div>
<div class="ttc" id="halfgate__eva_8h_html_ae6b1f449a574cfe029f41e46e9b65a4c"><div class="ttname"><a href="halfgate__eva_8h.html#ae6b1f449a574cfe029f41e46e9b65a4c">halfgate_eva_is_public</a></div><div class="ttdeci">bool halfgate_eva_is_public(GarbleCircuit *gc, const block &amp;b, int party)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:153</div></div>
<div class="ttc" id="class_half_gate_eva_html_a57d3be00fff3b90d4ac415481f484bfe"><div class="ttname"><a href="class_half_gate_eva.html#a57d3be00fff3b90d4ac415481f484bfe">HalfGateEva::generic_to_xor</a></div><div class="ttdeci">void generic_to_xor(block *new_block, const block *old_block, int length)</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:82</div></div>
<div class="ttc" id="class_file_i_o_html"><div class="ttname"><a href="class_file_i_o.html">FileIO</a></div><div class="ttdef"><b>Definition:</b> file_io_channel.h:21</div></div>
<div class="ttc" id="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4_html_a6346cf87b7d7cc6c53a2fa86904c7453"><div class="ttname"><a href="class_half_gate_eva_3_01_t_00_01_r_t_ckt_opt_1_1off_01_4.html#a6346cf87b7d7cc6c53a2fa86904c7453">HalfGateEva&lt; T, RTCktOpt::off &gt;::fio</a></div><div class="ttdeci">FileIO * fio</div><div class="ttdef"><b>Definition:</b> halfgate_eva.h:101</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_eec959d81771dc8b1a750b834e1341eb.html">emp-tool</a></li><li class="navelem"><a class="el" href="dir_753dd0b08657245813d151abe49cc74f.html">gc</a></li><li class="navelem"><a class="el" href="halfgate__eva_8h.html">halfgate_eva.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
